package com.farmer.reliablemessage.event;

import com.farmer.reliablemessage.entity.ReliableMessage;
import org.springframework.context.ApplicationEvent;

/**
 * @author tech-famer
 * @ClassName: ReliableMessageSendEvent
 * @Description: (这里用一句话描述这个类的作用)
 * @date 2021/11/1 17:37
 */
public class ReliableMessageSendEvent extends ApplicationEvent {

    private ReliableMessage message;
    public ReliableMessageSendEvent(Object source, ReliableMessage message) {
        super(source);
        this.message = message;
    }

    public ReliableMessage getMessage() {
        return message;
    }

    public void setMessage(ReliableMessage message) {
        this.message = message;
    }
}
